package com.hlhj.carview.customView

import android.app.Activity
import android.app.Dialog
import android.content.Context
import android.os.Bundle
import android.view.View
import com.example.mymvp.log
import com.hlhj.carview.BaseAty
import com.hlhj.carview.R
import com.hlhj.carview.Toast
import com.hlhj.carview.utils.LoadingUtil
import kotlinx.android.synthetic.main.dialog_itemask.*

/**
 *NeverMore
 *2020/9/7
 **/
class IteamAskDialog(private val c:Context):Dialog(c, R.style.ThemeOverlay_AppCompat_Dialog) {

    private var sucess:String=""
    var callback: (() -> Unit)? =null
    override fun onCreate(savedInstanceState: Bundle?) {
        super.onCreate(savedInstanceState)
        setContentView(R.layout.dialog_itemask)

        btCancel.setOnClickListener {
            dismiss()
        }

        btYes.setOnClickListener {
            dismiss()
            callback?.invoke()

        }
    }

    fun show(s:String,hint:String){
        show()
        sucess=hint
        itemDes.text=s

    }
}